package com.njtoyo.taxi.admin.library.traffic_info;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Conditions {
    private List<Param.Condition> condition = new ArrayList<>();

    public Conditions add(String code, String value) {
        condition.add(new Param.Condition(code, value));
        return this;
    }

    public Conditions add(String code, String value, String operation) {
        condition.add((new Param.Condition(code, value)).setOperation(operation));
        return this;
    }
}
